package com.cmc.cloud.cmclink.doc.api.document.req.so;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import java.util.List;

/**
 * 特种货审批的箱型信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SpecialCargoCntrBaseVO {

    @Schema(description = "主信息下cntrId,更新需要传")
    private Long id;

    @Schema(description = "特种货申请主id")
    private Long applyId;

    @Schema(description = "箱型")
    @Length(max = 2, message = "箱型支持最大长度{max}")
    private String cntrType;

    @Schema(description = "箱尺寸")
    @Length(max = 2, message = "箱尺寸支持最大长度{max}")
    private String cntrSize;

    @Schema(description = "箱量")
    private Integer qty;

    @Schema(description = "货物毛重（Kg）")
    private BigDecimal grossWgt;

    @Schema(description = "货物净重 （Kg）")
    private BigDecimal netWgt;

    @Schema(description = "关联的DG")
    private List<Long> dgId;

    @Schema(description = "关联的DG的unNo")
    private List<String> unNo;

    @Schema(description = "箱子下挂的DG临时标识，和DG信息里一一对应")
    private List<Long> dgLabels;

    @Schema(description = "关联的DG的imoClass")
    private List<String> imoClass;

}
